//
//  LineItemCodeCell.m
//  NtoccShipper
//
//  Created by 张天兴 on 2023/8/21.
//  Copyright © 2023 zhuchongjin. All rights reserved.
//

#import "LineItemCodeCell.h"


@implementation LineItemCodeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setCellInfoWithSourceModel:(ObjectListIModel *)model{
    self.nameLabel.text = model.projectName;
    self.hwNameLabel.text = model.coalTypeName;
    self.fAddressLabel.text = CJStringWithFormat(@"%@%@", model.shipperAddress,model.shipperDetailAddress);
    self.qiyeLabel.text = model.shipperCompany;
    if(model.isStop == 1){
        self.tingImagView.hidden = NO;
        [self.stopButton setTitle:@"已停用" forState:(UIControlStateNormal)];
    }else{
        self.tingImagView.hidden = YES;
        [self.stopButton setTitle:@"停用" forState:(UIControlStateNormal)];
    }
}
@end
